package huy.mmt.gamelathinh.components;

import android.R.bool;
import huy.mmt.gamelathinh.Play;
import huy.mmt.gamelathinh.dialog.DialogCompleted;

public class Score {
	/**
	 * Khai báo các thông số dollar co level,...
	 */
	public static int score_current = 0;
	public static int score_level = 0;
	public static int score_bonus;

	// Lay gia tri cu neu ma khong thang
	public void setScoreTotalCurrent() {
		this.score_current = Play.score_current + this.getScoreBonus();
	}

	public int getScoreTotalCurrent() {
		return score_current;
	}

	public void setScoreLevel() {
		this.score_level = (Play.Dem_thang * 200);
	}

	public int getScoreLevel() {
		return score_level;
	}
	public void setScoreBonus(int abc) {
		abc =  DialogCompleted.score_bonus2;
		this.score_bonus = abc;
	}

	// get
	public int getScoreBonus() {
		return score_bonus;
	}
	public void count_score_level(int dem_thang) {
		this.score_level = dem_thang * 200;
	}

	// Neu thang moi chay ham nay`

	public int get_score_total(boolean win) {
		// Neu thang
		if (win = true) {
			
			this.score_current = this.score_current + this.score_level
					+ this.score_bonus;
		}
		return score_current;
	}

	// set
	
}
